﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Clmp.Data.DBEntity
{
    /// <summary>
    /// 数据库列描述
    /// </summary>
    public class ColumnAttribute : Attribute
    {
        /// <summary>
        /// 数据库列描述
        /// </summary>
        /// <param name="name">映射的数据库列名称</param>
        public ColumnAttribute(string name)
        {
            Name = name;
            IsPrimaryKey = false;
        }
        /// <summary>
        /// 映射的数据库列名称
        /// </summary>
        public string Name { get; set; }
        /// <summary>
        /// 是否是主键
        /// </summary>
        public bool IsPrimaryKey { get; set; }
    }
}
